package com.example.teacherservice.dto;

import lombok.Data;

import java.sql.Timestamp;

@Data
public class ClassDTO {
    private Long id;
    private String className;
    private Integer classStuNum;
    private Timestamp createTime;
    private Timestamp updateTime;

    public ClassDTO() {}

    // 添加与JPQL查询匹配的构造方法
    public ClassDTO(Long id, String className, Integer classStuNum, Timestamp createTime) {
        this.id = id;
        this.className = className;
        this.classStuNum = classStuNum;
        this.createTime = createTime;
    }
}
